.attribute-panel {
  display: flex;
  flex-direction: column;
  height: 100%;
  background: white;
  min-height: 0;
  overflow: hidden;
}

.attribute-panel-toolbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 12px;
  background: #f9fafb;
  border-bottom: 1px solid #e5e7eb;
  font-size: 13px;
  flex-shrink: 0;
}

.toolbar-info {
  color: #6b7280;
  font-size: 12px;
}

.toolbar-selected {
  color: #1890ff;
  font-weight: 500;
  margin-left: 4px;
}

.attribute-panel .header-right {
    display: flex;
    align-items: center;
    gap: 8px;
}

.attribute-panel-content {
    flex: 1;
    overflow: auto;
    padding: 0 8px 12px 8px;
    position: relative;
    min-height: 0;
    display: flex;
    flex-direction: column;
}

.attribute-panel-content.empty {
    display: flex;
    align-items: center;
    justify-content: center;
    color: #999;
}

.attribute-table {
    flex: 1;
    width: 100%;
    min-height: 0;
    display: flex;
    flex-direction: column;
}

.attribute-table .ant-table {
    font-size: 11px;
}

.attribute-table .ant-table-wrapper {
    flex: 1;
    display: flex;
    flex-direction: column;
    min-height: 0;
}

.attribute-table .ant-table {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.attribute-table .ant-table-container {
    flex: 1;
    display: flex;
    flex-direction: column;
    min-height: 0;
}

/* 确保表格容器支持横向滚动 */
.attribute-table .ant-table-body {
    overflow-x: auto !important;
    overflow-y: auto !important;
    flex: 1;
    min-height: 0;
}

/* 强制显示滚动条 */
.attribute-table .ant-table-body::-webkit-scrollbar {
    width: 10px;
    height: 10px;
}

.attribute-table .ant-table-body::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 5px;
}

.attribute-table .ant-table-body::-webkit-scrollbar-thumb {
    background: #888;
    border-radius: 5px;
}

.attribute-table .ant-table-body::-webkit-scrollbar-thumb:hover {
    background: #555;
}

.attribute-table .ant-table-body::-webkit-scrollbar-corner {
    background: #f1f1f1;
}

/* 表格边框样式 */
.attribute-table.ant-table-bordered .ant-table-container {
    border: 1px solid #d9d9d9;
}

.attribute-table.ant-table-bordered .ant-table-content table {
    border-collapse: collapse;
}

.attribute-table .ant-table-thead > tr > th {
    background: #fafafa;
    font-weight: 600;
    font-size: 11px;
    padding: 3px 6px;
    border-bottom: 2px solid #d9d9d9;
    border-right: 1px solid #f0f0f0;
    line-height: 1.3;
}

.attribute-table .ant-table-thead > tr > th .ant-table-column-sorter {
    margin-left: 2px;
}

.attribute-table .ant-table-thead > tr > th .ant-table-column-sorter-inner {
    font-size: 10px;
}

.attribute-table .ant-table-tbody > tr > td {
    font-size: 11px;
    padding: 2px 6px;
    border-bottom: 1px solid #f0f0f0;
    border-right: 1px solid #f0f0f0;
    line-height: 1.4;
}

.attribute-table .ant-table-tbody > tr:hover > td {
    background: #f0f8ff;
    cursor: pointer;
}

.attribute-table .ant-table-tbody > tr {
    cursor: pointer;
}

/* 选中行样式 - 提高优先级 */
.attribute-table .ant-table-tbody > tr.row-selected > td {
    background: #e6f7ff !important;
    border-top: 2px solid #1890ff !important;
    border-bottom: 2px solid #1890ff !important;
    font-weight: 600 !important;
    color: #1890ff !important;
}

.attribute-table .ant-table-tbody > tr.row-selected:hover > td {
    background: #bae7ff !important;
}

/* 虚拟滚动中的选中行样式 */
.attribute-table .ant-table-tbody .ant-table-row.row-selected .ant-table-cell {
    background: #e6f7ff !important;
    border-top: 2px solid #1890ff !important;
    border-bottom: 2px solid #1890ff !important;
    font-weight: 600 !important;
    color: #1890ff !important;
}

/* 序号列样式 */
.attribute-table .ant-table-thead > tr > th:first-child,
.attribute-table .ant-table-tbody > tr > td:first-child {
    background: #fafafa;
    border-right: 2px solid #d9d9d9;
    text-align: center;
}

.attribute-table .ant-table-tbody > tr:hover > td:first-child {
    background: #f0f0f0;
}

.attribute-table .ant-table-tbody > tr.row-selected > td:first-child,
.attribute-table .ant-table-tbody .ant-table-row.row-selected .ant-table-cell:first-child {
    background: #d6efff !important;
    font-weight: 600 !important;
    color: #1890ff !important;
    border-right: 2px solid #1890ff !important;
}
